package com.lean.android.ad.core.splash

import android.view.View
import androidx.annotation.RestrictTo
import com.bytedance.sdk.openadsdk.CSJSplashAd
import com.lean.android.ad.core.Ad

@RestrictTo(RestrictTo.Scope.LIBRARY)
class SplashAd(val splashAd: CSJSplashAd,
               private val reqId: String,
    val coldLaunch: Boolean) : Ad {

    override val requestId: String
        get() = reqId
    override val adView: View?
        get() = splashAd.splashView


    override fun destroy() {
        splashAd.mediationManager?.destroy()
    }
}